<template>
  <div class="goods">
    <div class="menu-wrapper">
      <ul>
        <li v-for="item in goods" :key="item">
          <span class="text">
            <span v-show="item.type>0" class="icon"></span>
          </span>
        </li>
      </ul>
    </div>
    <div class="foods-wrapper"></div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    props: {
        seller: {
            type: Object
        }
    },
    data() {
       return {
           goods: []
       };
    },
    created() {
      this.axios.get('/api/goods', {
      })
        .then((response) => {
          this.goods = response.data.data;
          console.log(this.goods);
        })
        .catch((error) => {
          console.log(error);
        });
    }
  };
</script>

<style lang="stylus" rel="stylesheet/stylus">
  .goods
    display: flex
    position: absolute
    top: 174px
    bottom: 46px
    width: 100%
    overflow: hidden
    .menu-wrapper
      flex: 0 0 80px
      width: 80px
      background: #f3f5f7
</style>
